
//- This source code is licensed under the terms of the
//- GNU Affero General Public License found in the LICENSE file in
//- the root directory of this source tree.
//-
//- Copyright (c) 2021-present Kaleidos INC

tg-import-project-selector(
    class="import-project-selector"
    logo="/#{v}/images/import-logos/trello.png"
    search="{{ 'PROJECT.IMPORT.TRELLO.CHOOSE_PROJECT' | translate }}"
    no-projects-msg="{{ 'PROJECT.IMPORT.TRELLO.NO_PROJECTS' | translate }}"
    projects="vm.projects"
    on-cancel="vm.onCancel()"
    on-select-project="vm.onSelectProject(project)"
    ng-if="vm.step == 'project-select-trello'"
)

tg-trello-import-project-form(
    class="import-project-form"
    ng-if="vm.step == 'project-form-trello'"
    project="vm.project"
    members="vm.members"
    fetching-users="vm.fetchingUsers"
    on-save-project-details="vm.onSaveProjectDetails(project)"
    on-cancel-form="vm.step = 'project-select-trello'"
)

tg-import-project-members(
    class="import-project-members"
    ng-if="vm.step == 'project-members-trello'"
    platform="Trello"
    logo="/#{v}/images/import-logos/trello.png"
    project="vm.project"
    members="vm.members"
    on-submit="vm.submitUserSelection(users)"
    on-cancel="vm.onCancelMemberSelection()"
)
